Flutter turn string to int

211

Flutter turn string to int -

// String -> int
main () {
    var one = int.parse('1');
    print(one == 1); // prints true
}

Comments

Submit
0 Comments